package com.abel.bigwater.dataserver.model.kming

enum class KmingDataType(val code: Short) {
    TermUploadReq(0x11),
    TermSendData(0x12),
    TermBurst(0x13),
    TermHeart(0x14),
    TermShutdownComm(0x15),

    /**
     * used only in sub-data.
     */
    TermDummy(0x00),

    ReqDurationData(0x90),
    ReqTermParam(0x91),
    ReqConfigTerm(0x92),

    ReqChannelBurstParam(0xA1),
    ReqConfigChannelBurst(0xA2);

    companion object {
        fun findByCode(_code: Short) = KmingDataType.values().find { it.code == _code }
    }
}